package com.fangcun.service.admin;

import java.util.List;

import com.fangcun.bean.admin.user.request.LoginRequest;
import com.fangcun.bean.admin.user.request.RegisterAdminUserRequest;
import com.fangcun.bean.admin.user.request.UpdateAdminUserPasswordRequest;
import com.fangcun.bean.admin.user.response.LoginResponse;
import com.fangcun.common.exception.ProAffairException;
import com.fangcun.common.exception.ProException;
import com.fangcun.entity.AdminMenuPermission;

/**
 * @作者： 陳曉鬆 @时间： 2020年5月7日 - 上午11:07:10 @description：->
 */
public interface AdminUserService {

	/** 后台登录 **/
	public LoginResponse login(LoginRequest request) throws ProException;

	/** 查询用户的菜单 **/
	public List<AdminMenuPermission> userMenu(Long userId, Long parentId) throws ProException;

	/** 注册新的管理员 **/
	public void registerAdminUser(RegisterAdminUserRequest user) throws ProAffairException;

	/** 退出登录 **/
	public void logout(String key) throws ProException;

	/** 修改密码 **/
	public void updatePassword(UpdateAdminUserPasswordRequest request, String key) throws ProException;
	
}
